public class test {




    public static void printArray(int[] arr){
        int i=0;
        for(i=0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }
        System.out.println();
    }

    public static void main2(String[] args) {
        int[] arr={1,2,3,4,5};
        printArray(arr);
    }


    public static void main1(String[] args) {
       int[] arr=new int[100];
        int i=0;
        for (i=1;i<=arr.length;i++) {
            arr[ i - 1]=i;
            System.out.print(arr[i-1]+" ");
        }
        System.out.println();
    }

}
